<template>
	<view>
		<view-tongxunlu ref="view-tongxunlu"></view-tongxunlu>
	</view>
</template>
<script>
	var app = getApp();
	export default {
		data() {
			return {
				isReady: 0
			}
		},
		onReady() {
			this.viewOnload();
			this.isReady = 1;
		},
		onShow() {
			if(this.isReady == 1){
				this.viewOnshow();
			}
		},
		onPullDownRefresh: function() {
		    var self = this;
			self.viewOnRefresh();
		},
		onReachBottom: function() {
		    var self = this;
			self.viewOnBottom();
		},
		onPageScroll: function (e) {
			var self = this;
			self.viewOnScroll(e);
		},
		methods: {
			viewOnload(){
				var self = this;
				self.$refs['view-tongxunlu'].viewLoad();
				self.$refs['view-tongxunlu'].viewShow();
			},
			viewOnshow(){
				var self = this;
				self.$refs['view-tongxunlu'].viewShow();
			},
			viewOnRefresh(){
				var self = this;
				self.$refs['view-tongxunlu'].viewRefresh();
			},
			viewOnBottom(){
				var self = this;
				self.$refs['view-tongxunlu'].viewBottom();
			},
			viewOnScroll(e){
				var self = this;
				self.$refs['view-tongxunlu'].viewScroll(e);
			}
		}
	}
</script>